# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=xca
pkgver=2.4.0
pkgrel=1
pkgdesc="X certificate and key management"
url="https://hohnstaedt.de/xca/"
arch="all"
license="BSD-3-Clause"
options="!check" # no tests
depends="qt5-qtbase-sqlite"
makedepends="qt5-qttools-dev openssl1.1-compat-dev libtool"
subpackages="$pkgname-doc"
source="https://github.com/chris2511/xca/releases/download/RELEASE.$pkgver/xca-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e93e2cf9dc48ed43ee9b51e977f825d81ff08835eb4d77fcbe8f9dc8ce31c77c1da879b48c25ab535717542d1fe84faa6e46c410c116edbee02072040c59667c  xca-2.4.0.tar.gz"
